/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*
 *  ICU License - ICU 1.8.1 and later
 *
 *  COPYRIGHT AND PERMISSION NOTICE
 *
 * Copyright (c) 1995-2005 International Business Machines Corporation and others
 * All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, and/or sell copies of the Software, and to permit persons
 * to whom the Software is furnished to do so, provided that the above
 * copyright notice(s) and this permission notice appear in all copies of
 * the Software and that both the above copyright notice(s) and this
 * permission notice appear in supporting documentation.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
 * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
 * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 *
 * Except as contained in this notice, the name of a copyright holder
 * shall not be used in advertising or otherwise to promote the sale, use
 * or other dealings in this Software without prior written authorization
 * of the copyright holder.
 *
 * --------------------------------------------------------------------------
 * All trademarks and registered trademarks mentioned herein are the property
 * of their respective owners.
 */
/*
 * Copyright (c) 1999 by Sun Microsystems, Inc.
 */


#ifndef _IBM_THAI_TABLE_H_
#define _IBM_THAI_TABLE_H_


#include "common_thai.h"
#include "common_def.h"

hcode_table ibm874_838_tbl[] = {
	{ 0x00, 0x00 },
	{ 0x01, 0x01 },
	{ 0x02, 0x02 },
	{ 0x03, 0x03 },
	{ 0x04, 0x37 },
	{ 0x05, 0x2d },
	{ 0x06, 0x2e },
	{ 0x07, 0x2f },
	{ 0x08, 0x16 },
	{ 0x09, 0x05 },
	{ 0x0a, 0x25 },
	{ 0x0b, 0x0b },
	{ 0x0c, 0x0c },
	{ 0x0d, 0x0d },
	{ 0x0e, 0x0e },
	{ 0x0f, 0x0f },
	{ 0x10, 0x10 },
	{ 0x11, 0x11 },
	{ 0x12, 0x12 },
	{ 0x13, 0x13 },
	{ 0x14, 0x3c },
	{ 0x15, 0x3d },
	{ 0x16, 0x32 },
	{ 0x17, 0x26 },
	{ 0x18, 0x18 },
	{ 0x19, 0x19 },
	{ 0x1a, 0x3f },
	{ 0x1b, 0x27 },
	{ 0x1c, 0x1c },
	{ 0x1d, 0x1d },
	{ 0x1e, 0x1e },
	{ 0x1f, 0x1f },
	{ 0x20, 0x40 },
	{ 0x21, 0x5a },
	{ 0x22, 0x7f },
	{ 0x23, 0x7b },
	{ 0x24, 0x5b },
	{ 0x25, 0x6c },
	{ 0x26, 0x50 },
	{ 0x27, 0x7d },
	{ 0x28, 0x4d },
	{ 0x29, 0x5d },
	{ 0x2a, 0x5c },
	{ 0x2b, 0x4e },
	{ 0x2c, 0x6b },
	{ 0x2d, 0x60 },
	{ 0x2e, 0x4b },
	{ 0x2f, 0x61 },
	{ 0x30, 0xf0 },
	{ 0x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 0xf4, 0xb4 },
	{ 0xf5, 0xb5 },
	{ 0xf6, 0xb6 },
	{ 0xf7, 0xb7 },
	{ 0xf8, 0xb8 },
	{ 0xf9, 0xb9 },
	{ 0xfa, 0x90 },
	{ 0xfb, 0xa0 },
	{ 0xfc, 0x4a },
	{ 0xfd, 0x5f },
	{ 0xfe, 0x6a },
	{ 0xff, 0xff }
};

hcode_table ibm838_874_tbl[] = {
	{ 0x00, 0x00 },
	{ 0x01, 0x01 },
	{ 0x02, 0x02 },
	{ 0x03, 0x03 },
	{ 0x04, 0x9c },
	{ 0x05, 0x09 },
	{ 0x06, 0x86 },
	{ 0x07, 0x7f },
	{ 0x08, 0x97 },
	{ 0x09, 0x8d },
	{ 0x0a, 0x8e },
	{ 0x0b, 0x0b },
	{ 0x0c, 0x0c },
	{ 0x0d, 0x0d },
	{ 0x0e, 0x0e },
	{ 0x0f, 0x0f },
	{ 0x10, 0x10 },
	{ 0x11, 0x11 },
	{ 0x12, 0x12 },
	{ 0x13, 0x13 },
	{ 0x14, 0x9d },
	{ 0x15, 0x85 },
	{ 0x16, 0x08 },
	{ 0x17, 0x87 },
	{ 0x18, 0x18 },
	{ 0x19, 0x19 },
	{ 0x1a, 0x92 },
	{ 0x1b, 0x8f },
	{ 0x1c, 0x1c },
	{ 0x1d, 0x1d },
	{ 0x1e, 0x1e },
	{ 0x1f, 0x1f },
	{ 0x20, 0x80 },
	{ 0x21, 0x81 },
	{ 0x22, 0x82 },
	{ 0x23, 0x83 },
	{ 0x24, 0x84 },
	{ 0x25, 0x0a },
	{ 0x26, 0x17 },
	{ 0x27, 0x1b },
	{ 0x28, 0x88 },
	{ 0x29, 0x89 },
	{ 0x2a, 0x8a },
	{ 0x2b, 0x8b },
	{ 0x2c, 0x8c },
	{ 0x2d, 0x05 },
	{ 0x2e, 0x06 },
	{ 0x2f, 0x07 },
	{ 0x30, 0x90 },
	{ 0x31, 0x91 },
	{ 0x32, 0x16 },
	{ 0x33, 0x93 },
	{ 0x34, 0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